<template>
	<view class="promotion-goods">
		<view class="promotion-content">
			<navigator :url="'/pages/goods_detail/goods_detail?id='+item.id" class="promotion-content-list" v-for="(item,index) in list" :key="index">
				<view class="pic"><image :src="item.image" mode=""></image></view>
				<view class="text">
					<view class="name">{{item.store_name}}</view>
					<view class="sp-money">
						<view class="moneyCon">促销价: ￥<text>{{item.price}}</text></view>
					</view>
					<view class="buttom">
						<view class="money">日常价：￥{{item.ot_price}}</view>
						<view>仅剩：{{item.stock}}</view>
					</view>
				</view>
			</navigator>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			list:{
				type:Array,
				default:function(){
					return [];
				}
			}
		},
		data(){
			return{
				
			}
		}
	}
</script>

<style scoped>
	.promotion-content{
		padding: 0 30rpx;
	}
	.promotion-content-list{
		border-bottom: 1rpx solid #eee;
		height: 250rpx;
		align-items: center;
		justify-content: space-between;
		display: flex;
		flex-wrap: wrap;
	}
	.promotion-content-list .pic{
		width: 188rpx;
		height: 188rpx;
		position: relative;
	}
	.promotion-content-list .pic image{
		width: 100%;
		height: 100%;
		border-radius: 6rpx;
	}
	.promotion-content-list .text{
		font-size: 24rpx;
		color: #999;
		width: 472rpx;
	}
	.promotion-content-list .text .name{
		font-size: 30rpx;
		color: #333;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.promotion-content-list .text .sp-money{
		margin: 34rpx 0 20rpx 0;
		display: flex;
		flex-wrap: wrap;
	}
	.promotion-content-list .text .sp-money .moneyCon{
		padding: 0 18rpx;
		background-color: red;
		height: 46rpx;
		line-height: 46rpx;
		background-image: linear-gradient(to right,#ff6248 0%,#ff3e1e 100%);
		font-size: 20rpx;
		color: #fff;
		border-radius: 24rpx 3rpx 24rpx 3rpx;
	}
	.promotion-content-list .text .sp-money .moneyCon text{
		font-size: 24rpx;
	}
	.promotion-content-list .text .buttom{
		align-items: center;
		justify-content: space-between;
		display: flex;
		flex-wrap: wrap;
	}
	.promotion-content-list .text .buttom .money{
		text-decoration: line-through;
	}
</style>
